[POWERPC][XEN] Rename "Mambo" to "systemsim".
authorHollis Blanchard <hollisb@us.ibm.com>
Fri, 10 Nov 2006 22:45:25 +0000 (16:45 -0600)
committerHollis Blanchard <hollisb@us.ibm.com>
Fri, 10 Nov 2006 22:45:25 +0000 (16:45 -0600)
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
--HG--
rename : xen/arch/powerpc/mambo.S => xen/arch/powerpc/systemsim.S
extra : transplant_source : %8EB%A0%A4%0C%21%19%3E%A2%B6j%60%2B%1F%D5%19%D2%7F%BC%3D

xen/arch/powerpc/Makefile
xen/arch/powerpc/dart.c
xen/arch/powerpc/exceptions.h
xen/arch/powerpc/mambo.S [deleted file]
xen/arch/powerpc/mm.c
xen/arch/powerpc/systemsim.S [new file with mode: 0644]
xen/include/asm-powerpc/config.h
xen/include/asm-powerpc/msr.h
xen/include/asm-powerpc/powerpc64/string.h
xen/include/asm-powerpc/processor.h

index 96733d99b9eb2522f4d834913505f62be3cc05ea..d828f0a4b404f9b8993b4335600eb3a79dd82b81 100644 (file)
@@ -22,7 +22,7 @@ obj-y += float.o
 obj-y += hcalls.o
 obj-y += iommu.o
 obj-y += irq.o
-obj-y += mambo.o
+obj-y += systemsim.o
 obj-y += memory.o
 obj-y += mm.o
 obj-y += mpic.o
index 63db568503e0492fe8bcf6af9a5a3941a464a2fe..cdb256a1ad7b52d93f3e1f559496cc26fa7eca8d 100644 (file)
@@ -189,10 +189,8 @@ static int find_dart(struct dart_info *di)
     ofdn_t n;
     char compat[128];
 
-
-    if (on_mambo()) {
-        /* mambo has no dart */
-        DBG("%s: Mambo does not support a dart\n", __func__);
+    if (on_systemsim()) {
+        DBG("%s: systemsim does not support a dart\n", __func__);
         return -1;
     }
 
index 0ec2e76ec087f5db8ca11ac6256f2b4be905b119..0dcc504620eb82801248015c1e984a74ef82b1e2 100644 (file)
@@ -44,8 +44,6 @@ extern void program_exception(
 
 extern long xen_hvcall_jump(struct cpu_user_regs *regs, ulong address);
 
-extern void *mambo_memset(void *, int, ulong);
-extern void *mambo_memcpy(void *, const void *, ulong);
 extern void sleep(void);
 extern void idle_loop(void);
 
diff --git a/xen/arch/powerpc/mambo.S b/xen/arch/powerpc/mambo.S
deleted file mode 100644 (file)
index d325981..0000000
+++ /dev/null
@@ -1,64 +0,0 @@
-/*
- * Copyright (C) 2005 Jimi Xenidis <jimix@watson.ibm.com>, IBM Corporation
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- * 
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- * 
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
- *
- */
-
-#include <asm/config.h>
-#include <asm/processor.h>
-
-_GLOBAL(mambo_callthru)
-       .long 0x000eaeb0
-       blr
-
-_GLOBAL(mambo_write)
-       mr      r5, r4
-       mr      r4, r3
-       li      r3, 0           # Write console code
-       
-       li      r6, 0
-       /* need to fix return value */
-       mflr    r7
-       bl      _ENTRY(mambo_callthru)
-       mtlr    r7
-       mr      r3, r5
-       blr
-
-_GLOBAL(mambo_memset)
-       mr      r6, r5
-       mr      r5, r4
-       mr      r4, r3
-       li      r3, 0x47        # memset
-       /* need to fix return value */
-       mflr    r7
-       bl      _ENTRY(mambo_callthru)
-       mtlr    r7
-       mr      r3, r4
-       blr
-
-_GLOBAL(mambo_memcpy)
-       mr      r6, r5
-       mr      r5, r4
-       mr      r4, r3
-       li      r3, 0x45 # memcpy
-       /* need to fix return value */
-       mflr    r7
-       bl      _ENTRY(mambo_callthru)
-       mtlr    r7
-       mr      r3, r4
-       blr
-
-       
index d6bc94b4a5bf1a0e7c58a6aac7d45d8e29ebe8f0..4a0493978d10a166531c996ce6983d367f16cd2a 100644 (file)
@@ -27,6 +27,7 @@
 #include <xen/perfc.h>
 #include <asm/init.h>
 #include <asm/page.h>
+#include <asm/string.h>
 
 #ifdef VERBOSE
 #define MEM_LOG(_f, _a...)                                  \
@@ -276,9 +277,8 @@ long arch_memory_op(int op, XEN_GUEST_HANDLE(void) arg)
 
 extern void copy_page(void *dp, void *sp)
 {
-    if (on_mambo()) {
-        extern void *mambo_memcpy(void *,const void *,__kernel_size_t);
-        mambo_memcpy(dp, sp, PAGE_SIZE);
+    if (on_systemsim()) {
+        systemsim_memcpy(dp, sp, PAGE_SIZE);
     } else {
         memcpy(dp, sp, PAGE_SIZE);
     }
diff --git a/xen/arch/powerpc/systemsim.S b/xen/arch/powerpc/systemsim.S
new file mode 100644 (file)
index 0000000..14e1013
--- /dev/null
@@ -0,0 +1,64 @@
+/*
+ * Copyright (C) 2005 Jimi Xenidis <jimix@watson.ibm.com>, IBM Corporation
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ * 
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ * 
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
+ *
+ */
+
+#include <asm/config.h>
+#include <asm/processor.h>
+
+_GLOBAL(systemsim_callthru)
+       .long 0x000eaeb0
+       blr
+
+_GLOBAL(systemsim_write)
+       mr      r5, r4
+       mr      r4, r3
+       li      r3, 0           # Write console code
+       
+       li      r6, 0
+       /* need to fix return value */
+       mflr    r7
+       bl      _ENTRY(systemsim_callthru)
+       mtlr    r7
+       mr      r3, r5
+       blr
+
+_GLOBAL(systemsim_memset)
+       mr      r6, r5
+       mr      r5, r4
+       mr      r4, r3
+       li      r3, 0x47        # memset
+       /* need to fix return value */
+       mflr    r7
+       bl      _ENTRY(systemsim_callthru)
+       mtlr    r7
+       mr      r3, r4
+       blr
+
+_GLOBAL(systemsim_memcpy)
+       mr      r6, r5
+       mr      r5, r4
+       mr      r4, r3
+       li      r3, 0x45 # memcpy
+       /* need to fix return value */
+       mflr    r7
+       bl      _ENTRY(systemsim_callthru)
+       mtlr    r7
+       mr      r3, r4
+       blr
+
+       
index b3b3671c1d810adac1d612f6b21f039d4daa1bbe..f2df6d83cc659f950b281b283afc0d665a95186b 100644 (file)
@@ -21,7 +21,7 @@
 #ifndef __PPC_CONFIG_H__
 #define __PPC_CONFIG_H__
 
-#define CONFIG_MAMBO 1
+#define CONFIG_SYSTEMSIM 1
 #define HYPERVISOR_VIRT_START 0x0 /* XXX temp hack for common/kernel.c */
 
 
index b0efc454ee6f9fd419fcacb7b4007a77cdbae23e..207e2dc70eb74c3bbbc0c1627056365797c20654 100644 (file)
@@ -51,9 +51,9 @@
 #define MSR_RI      ULL(0x0000000000000002)
 #define MSR_LE      ULL(0x0000000000000001)
 
-/* MSR bits set on the Mambo simulator */
+/* MSR bits set on the systemsim simulator */
 #define MSR_SIM     ULL(0x0000000020000000)
-#define MSR_MAMBO   ULL(0x0000000010000000)
+#define MSR_SYSTEMSIM ULL(0x0000000010000000)
 
 /* On a trap, srr1's copy of msr defines some bits as follows: */
 #define MSR_TRAP_FE     ULL(0x0000000000100000) /* Floating Point Exception */
index 3e8af89876ace38fd22303b4e4b24bbdeec278cc..02ef66d84c05cdecad2b861a8015b46c4503779b 100644 (file)
@@ -37,4 +37,7 @@ extern void * memmove(void *,const void *,__kernel_size_t);
 extern int memcmp(const void *,const void *,__kernel_size_t);
 extern void * memchr(const void *,int,__kernel_size_t);
 
+extern void *systemsim_memset(void *, int, ulong);
+extern void *systemsim_memcpy(void *, const void *, ulong);
+
 #endif
index 3614e248ed6f0de6329e83d6c71fe19c3164963f..8343ecee713b93561794810a2dc99d95e3e087f7 100644 (file)
@@ -276,13 +276,13 @@ static inline unsigned mfdsisr(void)
     return val;
 }
 
-#ifdef CONFIG_MAMBO
-static inline int on_mambo(void)
+#ifdef CONFIG_SYSTEMSIM
+static inline int on_systemsim(void)
 {
-    return !!(mfmsr() & MSR_MAMBO);
+    return !!(mfmsr() & MSR_SYSTEMSIM);
 }
-#else /* CONFIG_MAMBO */
-static inline int on_mambo(void) { return 0; }
+#else /* CONFIG_SYSTEMSIM */
+static inline int on_systemsim(void) { return 0; }
 #endif
 
 #endif /* __ASSEMBLY__ */